-- GENERATED SPELL FOR [Stillpine Ancestor Yor] --


function spell0_17393(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_17393', 539, 1)
end

function spell1_17393(pUnit, Event) --@Shadow of the Forest,n/a--
pUnit:FullCastSpellOnTarget(30448,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17393', 616, 1)
end

function Sorts_17393(pUnit, Event)
local choix_sorts_17393 = math.random(0, 1)
if choix_sorts_17393 == 0 then
pUnit:RegisterEvent('spell0_17393', 1, 1)
end
if choix_sorts_17393 == 1 then
pUnit:RegisterEvent('spell1_17393', 1, 1)
end
end

function mob17393_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17393', math.random(1500, 3000), 1)
end

function mob17393_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17393_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17393_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17393, 1, 'mob17393_Action')
RegisterUnitEvent(17393, 2, 'mob17393_Leave')
RegisterUnitEvent(17393, 3, 'mob17393_Kill')
RegisterUnitEvent(17393, 4, 'mob17393_Die')
